<template>
    <el-transfer
              :titles="['企业名称','选中的企业名称']"
              :data="dataList"
              :props="{
                key: 'id',
                label: 'stationName'
               }"
              v-model="value" 
              @change="handleChange"
            ></el-transfer>
</template>
<script>
export default {
    data(){
        return{
            value:[]
        }
    },
     props:['dataList','selectType','showsName'],
    watch:{
        showsName(newVal,oldVal){
              this.value=newVal
        }
    },
    methods:{
        handleChange(value){
            let selectType=this.selectType
            this.$emit('BindhandleChange',{value,selectType})
        }
    }
}
</script>